import request from '@/utils/request'

const whiteApi = {
  list: '/boss/show/white/list',
  addWhite: '/boss/show/white/add',
  updateWhite: '/boss/show/white/update',
  deleteWhite: '/boss/show/white/del',
  bigCustomerMobileList: '/boss/user/info/listByPhone'
}

export function getWhiteList (parameter) {
  return request({
    url: whiteApi.list,
    method: 'post',
    data: parameter
  })
}

export function addWhite (parameter) {
  return request({
    url: whiteApi.addWhite,
    method: 'post',
    data: parameter
  })
}

export function updateWhite (parameter) {
  return request({
    url: whiteApi.updateWhite,
    method: 'post',
    data: parameter
  })
}

export function deleteWhite (parameter) {
  return request({
    url: whiteApi.deleteWhite,
    method: 'post',
    data: parameter
  })
}

// 大客户手机号查询列表
export function requestBigCustomerMobileList (parameter) {
  return request({
    url: whiteApi.bigCustomerMobileList,
    method: 'post',
    data: parameter
  })
}
